package cn.xiaoke.damowang_boot_test.controller;


import cn.xiaoke.damowang_boot_test.service.ILuckyDrawService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiaokedamowang
 * @since 2021-12-24
 */
@RestController
@RequestMapping("/lucky-draw")
@RequiredArgsConstructor
public class LuckyDrawController {

    private final ILuckyDrawService luckyDrawService;

    @GetMapping("/lucky")
    public Object lucky(Integer userId,Integer actId){
        return luckyDrawService.lucky(userId,actId);
    }

    @GetMapping("/lucky2")
    public Object lucky2(Integer userId,Integer actId){
        return luckyDrawService.lucky2(userId,actId);
    }
    @GetMapping("/lucky3")
    public Object lucky3(Integer userId,Integer actId){
        return luckyDrawService.lucky3(userId,actId);
    }
}

